package com.yourcompany.api.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yourcompany.common.utils.CustomLongSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Schema(description = "用户信息视图对象")
public class UserVO {
    @JsonSerialize(using = CustomLongSerializer.class)
    @Schema(description = "用户ID")
    private Long id;
    
    @Schema(description = "用户名")
    private String username;
    
    @Schema(description = "手机号")
    private String phone;
    
    @Schema(description = "昵称")
    private String nickname;
    
    @Schema(description = "头像")
    private String avatar;
    
    @Schema(description = "性别：0-未知 1-男 2-女")
    private Integer gender;
    
    @Schema(description = "是否实名认证：0-未认证 1-已认证")
    private Boolean isVerified;
    
    @Schema(description = "账户余额")
    private BigDecimal balance;
    
    @Schema(description = "积分")
    private Integer points;
    
    @Schema(description = "用户等级")
    private Integer level;
    
    @Schema(description = "注册来源")
    private String registerSource;
    
    @Schema(description = "最后登录时间")
    private LocalDateTime lastLoginTime;
    
    @Schema(description = "状态：0-禁用 1-启用")
    private Boolean status;
    
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
} 